<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/html">
<head>
    <meta charset="UTF-8">
    <title>v-bind v-model</title>
    <script src="js/vue.js"></script>
</head>
<body>

<div id="app">
    <a v-bind:href="url">点击一下</a>
    <a :href="url">百度</a>
    <input type="text" v-model="username">{{username}}</input>
    <input type="text" v-model="password">{{password}}</input>
</div>

<script>
    new Vue({
        el:"#app",
        data(){
            return{
                url:"https://www.baidu.com",
                username:"",
                password:""
            }
        }
    })
</script>

</body>
</html>